$(function () {
    setProductsType();
})
function setProductsType() {
    let data=myAjax("/page/casetypeFindAll","","get");
    data=data.list;
    let html='';
    for (let i=0; i<data.length; i++){
        html +='<div class="product" onclick="typeFind('+data[i].id+')"><p>'+data[i].name+'</p></div>';
    }
    $("#producttype").html(html);
}

function typeFind(typeFindid) {
    localStorage.setItem("typeFindid",typeFindid);
    window.open("engineering.html","_self");
}